package edu.gettysburg.catapp1;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.text.Layout;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;

public class Intro extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.intro_layout);

		Thread splashThread = new Thread() {
			@Override
			public void run() {
				try {
					int waited = 0;
					while (waited < 3000) {
						sleep(100);
						waited += 100;
					}
				} 
				catch (InterruptedException e) {
					//Currently doing nothing
				} 
				finally {
					finish();
					Intent i = new Intent();
					i.setClassName("edu.gettysburg.catapp1",
							"edu.gettysburg.catapp1.mainmenu");
					startActivity(i);
				}
			}
		};
		splashThread.start();
	}

}
